* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* 浮动元素动画 */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.coin {
    position: absolute;
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.coin-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.coin-2 {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.coin-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.coin-4 {
    bottom: 20%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* 头部样式 */
.header {
    text-align: center;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.fire-icon {
    font-size: 40px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(238, 90, 36, 0.4);
}

.countdown-timer {
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

/* 商品卡片 */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

.hot-badge, .discount-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.hot-badge {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.discount-badge {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px;
    color: white;
}

.original-price {
    font-size: 16px;
    text-decoration: line-through;
    opacity: 0.8;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.product-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.price-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.target-price {
    font-size: 14px;
    color: #27ae60;
    font-weight: bold;
}

/* 进度区域 */
.progress-section {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-header h3 {
    color: #333;
    font-size: 18px;
}

.participant-count {
    font-size: 12px;
    color: #666;
}

.progress-container {
    margin-bottom: 15px;
}

.progress-track {
    position: relative;
    height: 12px;
    background: linear-gradient(90deg, #e0e0e0, #f0f0f0);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4ecdc4, #44a08d, #27ae60);
    border-radius: 6px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-thumb {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #4ecdc4, #27ae60);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(1.1); }
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
}

.remaining-amount {
    font-size: 20px;
    font-weight: bold;
    color: #e74c3c;
}

.success-text {
    font-size: 14px;
    color: #27ae60;
    margin-left: 5px;
}

/* 操作区域 */
.action-section {
    margin-bottom: 20px;
}

.bargain-button {
    width: 100%;
    height: 60px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.bargain-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(238, 90, 36, 0.6);
}

.bargain-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 24px;
    animation: electric 1.5s infinite;
}

@keyframes electric {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.button-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: buttonShine 3s infinite;
}

@keyframes buttonShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.bargain-result {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #27ae60;
    margin-bottom: 20px;
    min-height: 24px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 最近活动 */
.recent-activity {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 15px;
    backdrop-filter: blur(10px);
}

.recent-activity h4 {
    color: #333;
    margin-bottom: 10px;
    font-size: 16px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    font-size: 14px;
    color: #666;
    padding: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
}

.user {
    color: #4ecdc4;
    font-weight: bold;
}

.amount {
    color: #e74c3c;
    font-weight: bold;
}

/* 分享区域 */
.share-section {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.share-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.share-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.wechat-btn {
    background: linear-gradient(45deg, #1aad19, #2dc653);
}

.moments-btn {
    background: linear-gradient(45deg, #4267B2, #365899);
}

.qq-btn {
    background: linear-gradient(45deg, #12b7f5, #0e9ce8);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.share-btn i {
    font-size: 20px;
}

.share-btn span {
    font-size: 12px;
}

/* 规则区域 */
.rules-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.rules-details summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.rules-details summary:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.rules-content {
    padding: 0 20px 20px;
    color: #666;
    line-height: 1.6;
}

.rules-content p {
    margin-bottom: 8px;
}

/* 成功弹窗 */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.5s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-animation {
    font-size: 60px;
    margin-bottom: 20px;
    animation: celebrate 1s ease infinite alternate;
}

@keyframes celebrate {
    from { transform: scale(1) rotate(-5deg); }
    to { transform: scale(1.1) rotate(5deg); }
}

.modal-content h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 20px;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.modal-btn {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(68, 160, 141, 0.4);
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .bargain-button {
        height: 50px;
        font-size: 16px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        flex-direction: row;
        justify-content: center;
    }
}